{% extends "explorer/base.html" %}
{% load i18n %}

{% block sql_explorer_content %}
    <div class="container">
        <h2>{% trans "Favorite Queries" %}</h2>
        <table class="table table-striped query-list">
            <thead>
            <tr>
                <th>{% trans "Query" %}</th>
            </tr>
            </thead>

            <tbody>
            {% for favorite in favorites %}
                <tr>
                    <th>
                        <a href="{% url 'query_detail' favorite.query.id %}">{{ favorite.query.title }}</a>
                    </th>
                </tr>

                {% empty %}
                <tr>
                    <th>
                        {% trans "No favorite queries added yet." %}
                    </th>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    </div>
{% endblock %}
